import request from '@/utils/request'

// 查询honor列表
export function listHonor(query) {
  return request({
    url: '/teacher/honor/list',
    method: 'get',
    params: query
  })
}

// 查询honor详细
export function getHonor(honorId) {
  return request({
    url: '/teacher/honor/' + honorId,
    method: 'get'
  })
}

// 新增honor
export function addHonor(data) {
  return request({
    url: '/teacher/honor/add',
    method: 'post',
    data: data
  })
}

// 修改honor
export function updateHonor(data) {
  return request({
    url: '/teacher/honor/update',
    method: 'post',
    data: data
  })
}

// 删除honor
export function delHonor(honorId) {
  return request({
    url: '/teacher/honor/' + honorId,
    method: 'post'
  })
}
